//
//  BanJiTableViewCell.m
//  ZhiBoYuan
//
//  Created by coder_di on 2018/4/17.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "BanJiTableViewCell.h"

@implementation BanJiTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //添加UI
        [self addUI];
    }
    return self;
}

-(void)addUI{
    self.nameLable = [[UILabel alloc]initWithFrame:CGRectMake(20 * KscreenWidth, 20 * KscreenHeight, ScreenWidth - 40 * KscreenWidth, 20 * KscreenHeight)];
    self.nameLable.text = @"这个班级名称";
    self.nameLable.font = [UIFont systemFontOfSize:18 * KscreenWidth];
    [self.contentView addSubview:self.nameLable];
    
    self.renshuLable = [[UILabel alloc]initWithFrame:CGRectMake(20 * KscreenWidth, 45 * KscreenHeight, ScreenWidth - 40 * KscreenWidth, 15 * KscreenHeight)];
//    self.renshuLable.text = @"老师人数：4人      学生人数：39人";
    self.renshuLable.font = [UIFont systemFontOfSize:15 * KscreenWidth];
    self.renshuLable.textColor = hui4Color;
    [self.contentView addSubview:self.renshuLable];
    
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
